<template>
	<view class="classLayout">
		<custom-nav-bar title="分类"></custom-nav-bar>
		<view class="classify">
			<theme-item v-for="item in classifyList" :key="item._id" :item="item"></theme-item>
		</view>
	</view>
</template>

<script setup>
	import {
		apiGetClassify
	} from "@/api/apis.js"
	import {
		ref
	} from 'vue'
	const classifyList = ref([]);
	const getClassify = async () => {
		let res = await apiGetClassify({
			pageSize: 15
		});
		classifyList.value = res.data
		console.log(res);
	}
	getClassify();
</script>

<style lang="scss" scoped>
	.classify {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 15rpx;
	}
</style>